﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserProfile.aspx.cs" Inherits="CTEA_INDIA.UserProfile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>My Profile</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="Stylesheet" type="text/css" />


</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
     <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
        <img src="Images/top_orange-strip.jpg"  />
    </div>
    <div >
        
        <center>
            <div>
                <table width="900px" border="0">
                    <tr>
                        <td valign="top" align="center">
                            <table width="100%" border="0" class="MainDiv">
                                <tr>
                                    <td valign="top" width="200px">
                                        <m1:Menu runat="server" ID="menu" />
                                    </td>
                                    <td valign="top">
                                        <table border="0" width ="100%"> 
                                           <tr>
                                                <td class="myaccount">
                                                    <asp:Label ID="Label2" runat="server" Text="My Account" CssClass="headingpage Label "></asp:Label>&nbsp;
                                                  
                                                    <div style="float: right; padding-right: 20px">
                                                        <span runat="server" id="spnUsername" visible="false" class="lstlogin"></span>|
                                                        <span runat="server" id="spnLastUsedDate" visible="false" class="lstlogin"></span>
                                                    </div>
                                                    <div class="imgstrip">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align ="center"  >
                                                    <table cellpadding="2px" cellspacing="5px" border="0" style="border: 1px; border-color: #DEDE00" width="500px" class ="innerBlackBG" >
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                <span id="idspanupdateMsg" runat="server" style="display: none" class="spanupdatemsg">
                                                                </span>
                                                                 <div style="float: right; color: Gray; font-size: 13px; padding-right: 20px">
                                                        <asp:Button ID="btnEdit" runat="server" Text="Edit " CssClass="btnsubmit" CausesValidation="false" OnClick="btnEdit_Click" />
                                                        <asp:Button ID="btnCancel" runat="server" CssClass="btnsubmit" Text="Cancel"  CausesValidation="false"
                                                            OnClick="btnCancel_Click" />
                                                    </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="Label" align="left" >
                                                                EmailID (UserName)
                                                            </td>
                                                            <td align="left" >
                                                                <asp:Label ID="lblEmail" ForeColor="White" runat="server" Text=""></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="Label " align="left" >
                                                                Name<span class="SpnColor">*</span>
                                                            </td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                                                    ControlToValidate="txtName" ErrorMessage="Please, Enter Name" CssClass="validators"></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="RequiredFieldValidator6">
                                                                </asp:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="Label" valign="top" align="left" >
                                                                Address <span class="SpnColor">*</span>
                                                            </td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="txtAddress" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                                                    ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address" CssClass="validators"></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator1">
                                                                </asp:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr >
                                                            <td class="Label" align="left" >
                                                                Location
                                                            </td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="txtLocation" runat="server" Width="150px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="Label" align="left" >
                                                                Website
                                                            </td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="txtWebsite" runat="server" MaxLength="25" Width="150px"></asp:TextBox>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtWebsite"
                                                                    Display="None" ErrorMessage="Enter valid Website address" ValidationExpression="^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}$"></asp:RegularExpressionValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RegularExpressionValidator7">
                                                                </asp:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr align="left" >
                                                            <td class="Label" valign="top">
                                                                Landline Number
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtcno" runat="server" MaxLength="12" SkinID="x-smallbox" Width="150px"></asp:TextBox>
                                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" WatermarkText=" eg.022-29876541" TargetControlID ="txtcno" runat="server">
                                                                </asp:TextBoxWatermarkExtender>
                                                                <%--<asp:Label ID="Label2" runat="server" Text=" eg.022-29876541" CssClass="Label "></asp:Label>--%>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtcno"
                                                                    ErrorMessage="Please Enter Contact number" CssClass="validators" Display="None"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtcno"
                                                                    CssClass="validators" Display="None" ErrorMessage="Enter Valid Number" ValidationExpression="^[0-9]\d{2,4}-\d{6,8}$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="Label" align="left" >
                                                                Contact Person Name <span class="SpnColor">*</span>
                                                            </td>
                                                            <td align="left" >
                                                                <asp:TextBox ID="txtContactP_Name" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="None"
                                                                    ControlToValidate="txtContactP_Name" ErrorMessage="Please,Enter Name"></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4">
                                                                </asp:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr align="left" >
                                                            <td class="Label">
                                                                Contact Person EmailId <span class="SpnColor">*</span>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtContactP_EmailID" runat="server" Width="150px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please, Enter Email ID"
                                                                    CssClass="validators" ControlToValidate="txtContactP_EmailID" Display="None"></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5">
                                                                </asp:ValidatorCalloutExtender>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtContactP_EmailID"
                                                                    CssClass="validators" ErrorMessage="Enter Valid Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                                    Display="none"></asp:RegularExpressionValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RegularExpressionValidator2" />
                                                            </td>
                                                        </tr>
                                                        <tr align="left" >
                                                            <td class="Label" width="200px">
                                                                Person Mobile Number
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtPers_MobileNo" runat="server" MaxLength="10" Width="150px"></asp:TextBox>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Invalid Number"
                                                                    Display="None" ControlToValidate="txtPers_MobileNo" ValidationExpression="^9[0-9]{9}$"
                                                                    CssClass="validators"></asp:RegularExpressionValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RegularExpressionValidator4" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                <asp:Button ID="btnUpdate" runat="server" CssClass="btnsubmit" Text="UPDATE" OnClick="btnUpdate_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>
    </div>
    <div>
    </div>
    </form>
</body>
</html>
